import logging

from pylons import request, response, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect
from portal import model
from portal.lib.base import BaseController, render

log = logging.getLogger(__name__)

class HomeController(BaseController):

    def index(self):
        # Return a rendered template
        
        q = model.Session.query(model.News)
        c.news = q.limit(228)
                
        return render('/home/home.mako')
        
